package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter@Getter
public class Schedule {
    public static final int STATUS_NORMAL = 0;
    public static final int STATUS_LOCK = 1;
    private Long id;
    private String subject;     //课程名称
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date subDate;       //日期
    private String weekday;     //星期
    private String remark;      //备注
    private Classgrade classgrade;  //班级
    private Employee employee;    //老师
    private int status = 0;        //状态
    private Classroom classroom;   //教室

}